
// 对应不同的模块将接口整合到一起, 1. 使用时直接按需引入,调用即可  2. 后期维护更方便
import axios from "@/utils/request" ; // 引入配置好的axios


export const getBannerListAPI = (data={},option={}) => axios.get("/banner/list",{   
        params:data,  // get传参 params:{}
        ...option
})

export const delBannerListAPI = (data={},option={}) => axios.get("/banner/delete",{   
        params:data,  // get传参 params:{}
        ...option
})

export const clearBannerListAPI = (data={},option={}) => axios.get("/banner/removeAll",{   
    params:data,  // get传参 params:{}
    ...option
})

export const addBannerAPI = (data={},option={}) => axios.post("/banner/add",data,{   
        ...option
})


export const updateBannerFlagAPI = (data={},option={}) => axios.post("/banner/updateFlag",data,{   
        ...option
})







